package edu.whu;

public class student {
    @com.example.InitMethod

    public void init() {
        System.out.println("加入学生");
        System.out.println("注解有用");
    }
    private  int age=1;
    @com.example.InitMethod
    public void ageout() {
        System.out.println("学生年龄为"+age);
        System.out.println("注解有用");
    }
    private  int year=1;
    @com.example.InitMethod
    public void yearout() {
        System.out.println("学生学制为"+year);
        System.out.println("注解有用");
    }
}
